package com.love.cloud.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.love.cloud.common.mybatis.entity.SimpleBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author hongdongqu
 */
@Data
@Entity
@ApiModel(value = "系统用户微应用关系")
@Table(name = "sys_user_micro_app")
@TableName("sys_user_micro_app")
@EqualsAndHashCode(callSuper = false)
@org.hibernate.annotations.Table(appliesTo = "sys_user_micro_app",comment="系统用户微应用关系表")
public class SysUserMicroApp extends SimpleBaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "应用名称")
    @Column(columnDefinition = "varchar(80) COMMENT '应用名称'")
    private String appName;

    @ApiModelProperty(value = "用户id")
    @Column(columnDefinition = "bigint COMMENT '用户id'")
    private Long userId;

    @ApiModelProperty(value = "用户积分")
    @Column(columnDefinition = "int COMMENT '积分'")
    private Integer integral;
}
